/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.fii.entity;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 *
 * @author Zeus
 */
@Embeddable
public class PgTmpCursoalumnosPK implements Serializable {
    @Basic(optional = false)
    @Column(name = "pg_codCurso", nullable = false, length = 6)
    private String pgcodCurso;
    @Basic(optional = false)
    @Column(name = "pg_codAlumno", nullable = false, length = 10)
    private String pgcodAlumno;

    public PgTmpCursoalumnosPK() {
    }

    public PgTmpCursoalumnosPK(String pgcodCurso, String pgcodAlumno) {
        this.pgcodCurso = pgcodCurso;
        this.pgcodAlumno = pgcodAlumno;
    }

    public String getPgcodCurso() {
        return pgcodCurso;
    }

    public void setPgcodCurso(String pgcodCurso) {
        this.pgcodCurso = pgcodCurso;
    }

    public String getPgcodAlumno() {
        return pgcodAlumno;
    }

    public void setPgcodAlumno(String pgcodAlumno) {
        this.pgcodAlumno = pgcodAlumno;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (pgcodCurso != null ? pgcodCurso.hashCode() : 0);
        hash += (pgcodAlumno != null ? pgcodAlumno.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof PgTmpCursoalumnosPK)) {
            return false;
        }
        PgTmpCursoalumnosPK other = (PgTmpCursoalumnosPK) object;
        if ((this.pgcodCurso == null && other.pgcodCurso != null) || (this.pgcodCurso != null && !this.pgcodCurso.equals(other.pgcodCurso))) {
            return false;
        }
        if ((this.pgcodAlumno == null && other.pgcodAlumno != null) || (this.pgcodAlumno != null && !this.pgcodAlumno.equals(other.pgcodAlumno))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.fii.entity.PgTmpCursoalumnosPK[ pgcodCurso=" + pgcodCurso + ", pgcodAlumno=" + pgcodAlumno + " ]";
    }
    
}
